<?php 
    require_once('inc/conn.php');
 ?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <?php
    $time=time();
             $sql="INSERT INTO biao(insert_name,insert_phone1,insert_phone2,insert_title,insert_content,create_time)VALUES('".$_POST['name']."','".$_POST['phone1']."','".$_POST['phone2']."','".$_POST['title']."','".$_POST['content1']."',".$time.")";

           if(mysql_query($sql)){
           echo "<script>alert('添加成功');window.location.href='xinwenlist.php'</script>";
           }else{
               echo "<script>alert('添加失败');window.location.href='xinwenlist.php'</script>";
           }
            exit;
            mysql_close($conn);
     ?>
</body>
</html>